#ifndef SYNCHRONOUSAV_H
#define SYNCHRONOUSAV_H

#include "out_handler.h"
class AudioTask;
class SynchronousAV : public Out_handler
{

public:
    SynchronousAV(AudioTask *,Out_handler *);

    ~SynchronousAV();
public:
    virtual bool receive_handler(unsigned char *data,int size,double pts);
    void    setExit(int);
private:
    AudioTask *m_pAudioTask;

    Out_handler * m_pReceive_handler;
private:
    double       frame_last_pts;     //记录上次图片的pts
    double       frame_last_delay;   //记录上次图片播放时 延时长度
    double       frame_timer;
    int         m_bExit;               //标记退出
};

#endif // SYNCHRONOUSAV_H
